<?php defined('IN_IA') or exit('Access Denied');?><?php (!empty($this) && $this instanceof WeModuleSite || 1) ? (include $this->template('common/header', TEMPLATE_INCLUDEPATH)) : (include template('common/header', TEMPLATE_INCLUDEPATH));?>
<ul class="nav nav-tabs">
	<li class="active"><a href="#">回向列表</a></li>
</ul>
<style>
#nav-tabs>li.active>a, #nav-tabs>li.active>a:hover, #nav-tabs>li.active>a:focus{ color:#333333; text-decoration:underline; }
</style>
<ul class="nav nav-tabs" id="nav-tabs" style="border:none;">
<?php  if(is_array($glist)) { foreach($glist as $glist) { ?>
	<li class="active">
    <a style="border:none; background:none;" href="<?php  echo $this->createWebUrl('news',array('display' => 1,'cid' =>$glist['class_id']))?>"><?php  echo $glist['classname'];?></a>
    </li>
<?php  } } ?>

</ul>
<style>
.table td span{display:inline-block;margin-top:4px;}
.table td input{margin-bottom:0;}
</style>
<div class="panel panel-default">
	<div class="table-responsive panel-body">
		<table class="table">
			<thead>
				<tr>
					<th style="width:50px">序号</th>
					<th>善信佛子</th>
					<th>姓名</th>
					<th>愿望</th>
					<th style="width:200px; text-align:right;">操作</th>
				</tr>
			</thead>
			<tbody>
				<?php  if(is_array($list)) { foreach($list as $item) { ?>
				<tr>
					<td><?php  echo $item['id'];?></td>
					<td>
						<a href="" style="color:#333;"><?php  echo $item['fozi'];?></a>
					</td>				
                    <td>
						<a href="" style="color:#333;"><?php  echo $item['name'];?></a>
					</td>	                    <td>
						<a href="" style="color:#333;"><?php  echo $item['give'];?></a>
					</td>				
					<td style="text-align:right; position:relative;">
						<a onclick="return confirm('此操作不可恢复，确认吗？'); return false;" 
                        href="<?php  echo $this->createWebUrl('hui', array('act' => 'delete','id' => $item['id']))?>" title="删除">删除</a>
					</td>
				</tr>
				<?php  } } ?>

			</tbody>
		</table>
	</div>
</div>
<?php  echo $pager;?>

<?php (!empty($this) && $this instanceof WeModuleSite || 1) ? (include $this->template('common/footer', TEMPLATE_INCLUDEPATH)) : (include template('common/footer', TEMPLATE_INCLUDEPATH));?>
